home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 1-4 / Prograph Reference 1-4.rsrc / TEXT_156.txt < prev    next >
Encoding:
Text File  |  1995-10-21  |  3.7 KB  |  121 lines

  1.  
  2. t    Balloon Help*153*
  3.  
  4. If you are running under System 7, you can obtain Balloon Help on Prograph menus, menu items, and dialogs, as well as on the contents of Prograph edit windows. You can also use the Prograph Balloon Help Editor to quickly create Balloon Help for your own applications. 
  5.  
  6. Balloon Help Editor*184*
  7.  
  8. Balloon Help for menus and menu items may be entered by clicking the Balloon‚Ķ button in the Menu Editor. Note that the Menu Editor permits selection of the Menu title as well as of Menu Items; the Menu Title de-highlights when a Menu Item is selected. The Balloon Help dialog will assign Balloon Help messages to the currently selected Menu or Menu Item.
  9.  
  10. To access the Balloon Help Editor from the Window Editor:*184*
  11.  
  12. u Enter the Window Editor, either by opening a window from the Application Editor, or by selecting Enter Editor from the Apple Menu when one of your application windows is frontmost or when the Attributes window of a Window class or subclass is frontmost.
  13.  
  14. u Double-click any window item to open its editor dialog. Below is the Button specification editor, with its Balloon‚Ķ button:*184*
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. u Click the Balloon‚Ķ button to open the Balloon Help Editor.*184*
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. u    Select the type of help message you want from the Balloon Contents pop-up menu. If you choose String you can directly type the text of your help message. If you choose 'STR#', 'TEXT', 'PICT' or 'STR ' you must specify the resource ID of the resource which will be displayed by Balloon Help.*155*
  58.  
  59. _____________________________________________________
  60. IMPORTANT: Resource type 'STR' is not available for use with Ballon Help messages for menus or menu items. 
  61. -----------------------------------------------------
  62.  
  63. u    Enter the appropriate information in each of the applicable fields.
  64.  
  65. u    Run your application and turn on Balloon Help.*155*
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. The appearance of the Balloon Help dialog changes to reflect your choice of one of the types from the Balloon Contents pop-up menu. *156*
  93.  
  94. o For String, 1 box is provided for typing each help message. 
  95.  
  96. o For 'STR#', 2 boxes are displayed for each help message, one for the resource ID (integer) and one for the index (1-based) within the 'STR#'. 
  97.  
  98. o For 'STR ', 'PICT' or 'TEXT' one box is displayed for the resource ID of each help message.
  99.  
  100. For each item for which there is to be balloon help, up to three messages may be displayed, so the dialog displays three message boxes. For the different types of item the messages are:*156*
  101.  
  102. o Menu ‚Äì Enabled, Disabled, Item Disabled because Menu disabled. 
  103.  
  104. o Menu Item ‚Äì Enabled, Disabled, Checked & Enabled.
  105.  
  106. o Button ‚Äì Enabled and Disabled.
  107.  
  108. o Check Box and Radio Button set ‚Äì Enabled, Disabled, and Checked & Enabled (note that for Radio Buttons Balloon Help applies to the set of Radio Buttons, not to each one individually). 
  109.  
  110. o Scroll List, Scroll Text, and Edit Text ‚Äì Enabled, Disabled, Selected & Enabled.
  111.  
  112. o All other Window Items (Text, Canvas, Click Item, Pop-up Menu, Graphic, Pict and Icon) ‚Äì Enabled and Disabled. *156*
  113. _______________________________________________________
  114. TECHNICAL NOTE: The balloon attribute has as its value a list that either is empty (no Balloon Help) or has 3 or 4 elements. This value can be manipulated by your application at runtime. The first element of the list is an integer specifying the type of Balloon Help. The remaining elements are the messages, with the defaults (for values that were not entered) being  ‚Äú‚Äù, (0 0) and 0 for string, 'STR#' or other resource type, respectively. The Balloon Help type identifiers are as follows:*157*
  115.  
  116.  String    1
  117.  STR#    3
  118.  STR     7
  119.  PICT    2
  120.  TEXT    6
  121. --------------------------------------------------